const crypto = require('crypto');

module.exports = (pwd) => {
    const secret = '1708b'; //加密的钥匙
    const hash = crypto.createHmac('sha256', secret)
                   .update(pwd)
                   .digest('hex');

    return hash
}


